﻿using Beetle;
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;

internal class Class_o
{
    internal static RSACryptoServiceProvider _field_a = null;
    private static string _field_b;
    private static string _field_c;
    private static string _field_d;
    private static StreamReader _field_e;

    static Class_o()
    {
        _field_a = (RSACryptoServiceProvider) TcpUtils.a();
    }

    public static Class_aa a()
    {
        Class_aa _aa = new Class_aa();
        try
        {
            Class_j.b(out _field_b);
            Class_j.a(out _field_c);
            c();
            b();
            using (_field_e)
            {
                Class_j.a(_aa, _field_e.ReadToEnd());
            }
        }
        catch (Exception)
        {
        }
        Class_b._field_c = _aa._field_a;
        return _aa;
    }

    public static bool a(string A_0, string A_1)
    {
        return a(Encoding.UTF8.GetBytes(A_0), Convert.FromBase64String(A_1));
    }

    public static bool a(byte[] A_0, byte[] A_1)
    {
        return _field_a.VerifyData(A_0, "MD5", A_1);
    }

    private static void b()
    {
        _field_e = new StreamReader(_field_d);
    }

    private static void c()
    {
        _field_d = TcpUtils.g() + _field_b;
    }
}

